package com.ruoyi.medical.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.domain.doctor.Patient;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 订单管理对象 medicine_order
 * 
 * @author WGH
 * @date 2025-08-13
 */
public class MedicineOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 患者ID */
    @Excel(name = "患者ID")
    private Long patientId;

    /** 处方ID */
    @Excel(name = "处方ID")
    private Long prescriptionId;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 删除状态 */
    private Integer del;

    /** 关联患者表 */
    private Patient patient;

    /** 关联处方表 */
    private Prescription prescription;
}
